<%@page import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@page import="net.tanesha.recaptcha.ReCaptcha"%>
<%@page import="helpers.HeaderHelper"%>
<%
	HeaderHelper headerHelper = (HeaderHelper) request.getAttribute("headerHelper");
	String[] check = (String[]) request.getAttribute("check");
	String success = (String) request.getAttribute("success");
%>

<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=headerHelper.getTitle()%>" />
    <jsp:param name="description" value="<%=headerHelper.getDescription()%>" />
    <jsp:param name="keywords" value="<%=headerHelper.getKeywords()%>" />
    <jsp:param name="ogite_name" value="<%=headerHelper.getOgite_name()%>" />
    <jsp:param name="ogtitle" value="<%=headerHelper.getOgtitle()%>" />
    <jsp:param name="ogurl" value="<%=headerHelper.getOgurl()%>" />
    <jsp:param name="ogimage" value="<%=headerHelper.getOgimage()%>" />
    <jsp:param name="ogescription" value="<%=headerHelper.getOgescription()%>" />
</jsp:include>

		<!-- 2 - main-content -->
    	<div class="main-content">
    		<!-- 3 - left-pane -->
    		<div class="left-pane">
    			<!-- 4 - main-browser -->
    			<div class="main-browser">
	    			<h1 class="title">Contact Us</h1>
	    			<h3 class="sub-title">If you have any questions, or comments and suggestions, please use the form below to contact us. Or you can mail to contact [at] www.1stapp.org .</h3>
	    		</div>
    			<!-- 4 - end main-browser -->
    			<div class="form-contact">
    				<%=(success != null)?"<p style='color:blue;'>"+success+"</p>":"" %>
    				
    				<form class="send_mail" method="post" action="/contact">
						<div>Your name :</div>
						<%=(check[0] != null)?"<p style='color:red;'>"+check[0]+"</p>":"" %>
						<input  type="text" name="name"/>
						<div>Your email :</div>
						<%=(check[1] != null)?"<p style='color:red;'>"+check[1]+"</p>":"" %>
						<input  type="text" name="email"/>
						<div>Message :</div>
						<%=(check[2] != null)?"<p style='color:red;'>"+check[2]+"</p>":"" %>
						<textarea name="message"></textarea><br/>
						<%=(check[3] != null)?"<p style='color:red;'>"+check[3]+"</p>":"" %>
						<script>
				        	var RecaptchaOptions = { theme : 'clean' };
				  		</script>
						<%
					      ReCaptcha c = ReCaptchaFactory.newReCaptcha("6LdwT9ASAAAAAHE6Ns-FGMygHMNB0FV3VSfOCDPa", "6LdwT9ASAAAAAKb4piYGwnFj0U4FaBUUdtHFaKhZ", false);
					      out.print(c.createRecaptchaHtml(null, null));
					    %>
					    <button type="submit">Send</button>
					</form>
    			</div>
    			
    		</div>
    		<!-- 3 - end left-pane -->
    		
    		<!-- 3 - right-pane -->
    		<jsp:include page="/elements/right.jsp" />
    		<!-- 3 - end right-pane -->
    		
    		<div class="clear"></div>
    	</div>
    	<!-- 2 - end main-content -->

<jsp:include page="/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>